package com.coreJava.shejimoshi.cglibdongtaidaili;

/**
 * 作者: LCG
 * 日期: 2020/2/13 20:10
 * 描述:
 */
public class TestCgLib00 {
    public static void main(String[] args) {


        //CGLIB为接口创建代理类
       /* TestGetProxyObject00<TestInterfce00> testGetProxyObject00=new TestGetProxyObject00<>();

        TestInterfce00 object = testGetProxyObject00.getProxyObject(TestInterfce00.class);

        System.out.println(object.test00("你好"));*/

        //CGLIB为实体类创建代理
        TestGetProxyObject001<TestImpl> testTestGetProxyObject001 = new TestGetProxyObject001<>();
        TestImpl objectProxy = testTestGetProxyObject001.getObjectProxy(TestImpl.class);
        System.out.println(objectProxy.test001("test"));
    }
}
